OrderedSet Constructor (IComparer)

Wintellect PowerCollections

Collapse imageExpand ImageCollapseAll imageExpandAll imageDropDown imageDropDownHover imageCopy imageCopyHover image
[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]

Creates a new OrderedSet. The Compare method of the passed comparison object will be used to compare items in this set.

Namespace: Wintellect.PowerCollections
Assembly:  PowerCollections (in PowerCollections.dll)

Syntax

C#
public OrderedSet(
	IComparer<T> comparer
)
Visual Basic (Declaration)
Public Sub New ( _
	comparer As IComparer(Of T) _
)
Visual C++
public:
OrderedSet (
	IComparer<T>^ comparer
)

Parameters

comparer
IComparer<(Of <T>)>
An instance of IComparer<T> that will be used to compare items.

Remarks

The GetHashCode and Equals methods of the provided IComparer<T> will never be called, and need not be implemented.

See Also